home *** CD-ROM | disk | FTP | other *** search
/ USA Bestseller / USA BESTSELLER Vol 1-95 (Hepp-Computer)(1995).iso / e193 / 0150ter2._xe / FAX.EXE / SENDFAX.BAT < prev    next >
DOS Batch File  |  1994-03-07  |  1KB  |  58 lines

  1. @ECHO OFF
  2.  
  3. Rem │
  4. Rem │      Sample batchfile for sending a fax from the commandline
  5. Rem │
  6. Rem │  Parameters:
  7. Rem │
  8. Rem │  1 : File to send APF (Fax-format), PCX, TIFF or Ascii Text to send
  9. Rem │  2 : Number to call
  10. Rem │  3 : Person to receive fax (Optional), replace blanks with underscores
  11. Rem │
  12. Rem │  Examples:
  13. Rem │
  14. Rem │    TERMINAT /FAX /SEND c:\autoexec.bat 4264xxxx
  15. Rem │    TERMINAT /FAX /SEND c:\autoexec.bat 4264xxxx Bo_Bendtsen
  16. Rem │
  17.  
  18. TERMINAT /FAX /SEND %1 %2 %3
  19.  
  20. If Errorlevel == 6 Goto Error
  21. If Errorlevel == 5 Goto Busy
  22. If Errorlevel == 4 Goto DataCall
  23. If Errorlevel == 3 Goto VoiceCall
  24. If Errorlevel == 2 Goto UserAbort
  25. If Errorlevel == 1 Goto TimeOut
  26. If Errorlevel == 0 Goto Ok
  27.  
  28. :Error
  29. Echo Some error occured during transfer or setup
  30. Goto End
  31.  
  32. :Busy
  33. Echo The line was busy
  34. Goto End
  35.  
  36. :DataCall
  37. Echo The number was a modem not in fax answer mode
  38. Goto End
  39.  
  40. :VoiceCall
  41. Echo Someone answered the call voice
  42. Goto End
  43.  
  44. :UserAbort
  45. Echo You aborted by pressing escape
  46. Goto End
  47.  
  48. :TimeOut
  49. Echo The call elapsed without any respons
  50. Goto End
  51.  
  52. :Ok
  53. Echo The file was send succesfully
  54. Goto End
  55.  
  56. :End
  57.  
  58.